home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / ShutDownEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  1.3 KB  |  56 lines  |  [TEXT/MPS ]

  1. ; Version: 3.2
  2. ; Created: Friday, October 20, 1989 at 9:51:05 PM
  3. ;
  4. ; File: ShutDownEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1987-1991
  8. ; All Rights Reserved
  9. ;
  10. ;--------------------------------------------------------------------
  11.  
  12.     IF &TYPE('__IncludingShutDownEqu__') = 'UNDEFINED' THEN
  13. __IncludingShutDownEqu__    SET    1
  14.  
  15.  
  16. ; Masks for ShutDwnInstall procedure
  17.  
  18. sdOnPowerOff      EQU         1                         ; call procedure before power off
  19. sdOnRestart       EQU         2                         ; call procedure before restart
  20. sdOnUnmount       EQU         4                         ; call procedure before unmounting
  21. sdOnDrivers       EQU         8                         ; call procedure before closing drivers
  22. sdRestartOrPower  EQU         3                         ; call before either power off or restart
  23.  
  24. ; ShutDown Selectors:
  25.  
  26. sdPowerOff        EQU         1
  27. sdRestart         EQU         2
  28. sdInstall         EQU         3
  29. sdRemove          EQU         4
  30.  
  31.  
  32.                   MACRO
  33.                   _SDPowerOff
  34.                   MOVE.W      #sdPowerOff,-(SP)
  35.                   DC.W        $A895                     ; _ShutDown
  36.                   ENDM
  37.  
  38.                   MACRO
  39.                   _SDRestart
  40.                   MOVE.W      #sdRestart,-(SP)
  41.                   DC.W        $A895                     ; _ShutDown
  42.                   ENDM
  43.  
  44.                   MACRO
  45.                   _SDInstall
  46.                   MOVE.W      #sdInstall,-(SP)
  47.                   DC.W        $A895                     ; _ShutDown
  48.                   ENDM
  49.  
  50.                   MACRO
  51.                   _SDRemove
  52.                   MOVE.W      #sdRemove,-(SP)
  53.                   DC.W        $A895                     ; _ShutDown
  54.                   ENDM
  55.  
  56.     ENDIF    ; ...already included